import { combineReducers } from 'redux';
import userReducer from './slices/userSlice';
import postsReducer from './slices/postsSlice';
import loginsReducer from './slices/loginSlice'
import imReducer from "./slices/loginSlice";
import createActiveReducer from "./slices/createActiveSilce"
import activityDetail from "./slices/activityDetailSlice"
import registerGroup from "./slices/registerGroupSlice"

const rootReducer = combineReducers({
    user: userReducer,
    posts: postsReducer,
    login: loginsReducer,
    im: imReducer,
    createActive: createActiveReducer,
    activityDetail: activityDetail,
    registerGroup: registerGroup,
});

export type RootState = ReturnType<typeof rootReducer>;

export default rootReducer;
